export default {
	onLoad() {
		let that = this;
		uni.getSystemInfo({
			success: function(res) {
				let pxToRpxScale = 750 / res.windowWidth;
				that.height = res.windowHeight * pxToRpxScale;
			}
		})
	},
	data() {
		return {
			height: 0,
			memberList: [],
			hasReject: false
		}
	},
	methods: {
		async getMember(callback) {
			let res = await getApp().UniRequest("/timeoff/authority/getMyMembers?xlsId=" + this.xlsId, "Get", "",
				this.header);
				console.log('执行')
			if (res.code === 20000) {
				console.log(res.data.data,this.xlsId, '我的成员11');
				this.memberList = res.data.data.memberList;
				console.log(this.memberList);
				this.memberList.forEach((item,index) => {
					if (item.status == 2) {
						this.hasReject = true;
						console.log('已被拒绝',this.hasReject)
					}
				})
				this.ackNumber = res.data.data.ackNum;
				this.totalNumber =  res.data.data.totalNum;
				callback && callback()
				
			}
		}
	}
}